<?php $this->headLink()->appendStylesheet($this->baseUrl('css/admintable.css')); ?>
<?php echo $this->render('frontend_common/header.phtml'); ?>

<div id="Content">
<div style="margin: auto;width: 50%;margin-top: 50px;">
<?php $listyeucau=$this->list_yeucauthaydoi ?>

<table>
	<tr>
		<thead>
		<th>Tên hoa</th>
		<th>Yêu cầu thay đổi</th>
		<th>Số lượng yêu cầu</th>
		</thead>
	</tr>
	<?php
		foreach ($listyeucau as $key=>$oneitem) 
		{
	?>
		<tr
			<?php
			if ($key % 2 != 0)
				echo ('class="changecolor1" style="background-color:#f3f3f3;"');
			else
				echo ('class="changecolor2" style="background-color:#FFF;"');
		?>
		>
			<td>
				<?php 
					$hoa_table=new Application_Model_Hoa();
					$hoa = $hoa_table->getHoa($oneitem['hoa_id']);
					echo $hoa['tenhoa'];
				?>
			</td>
			<td>
				<?php 
					if($oneitem['them'])
						echo "Thêm";
					else 
						echo "Giảm";
				?>
			</td>
			<td><?php echo $oneitem['slthaydoi'] ?></td>
		</tr>
	<?php 
		}
	?>
</table>

<a style="border: 1px solid red; background-color: white; border-radius:5px 5px 5px; padding:5px ;font-weight: bold;color: black;text-decoration: none; margin-top: 30px; float: left;margin-bottom: 30px " href="<?php echo $this->baseUrl('admin/odermanager') ?>">Trang quản lí đơn đặt hàng</a>
<?php echo $this->render('frontend_common/footer.phtml'); ?>